package com.dailyblue.project.smbms.alibaba.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.project.smbms.alibaba.commons.bean.Goods;
import com.dailyblue.project.smbms.alibaba.commons.util.JsonResult;

import javax.servlet.http.HttpServletRequest;

public interface GoodsService extends IService<Goods> {

    JsonResult findAllGoods();

    JsonResult addCart(HttpServletRequest request,Integer goodsId);

    JsonResult showCart(HttpServletRequest request);

    JsonResult removeCart(HttpServletRequest request,Integer goodsId);

    JsonResult updateCart(HttpServletRequest request,Integer goodsId,Integer newNum);
}
